﻿using System;
using Jayden.Dll.Web.Enums;
using Jayden.Dll.Web.HtmlControls.Descriptions;
using Jayden.Dll.Web.HtmlControls.Generics;

namespace Jayden.Dll.Web.HtmlControls
{
	public class Figure : HtmlElement
	{
		public Figure() : base(FigureDescription.Instance) { }
	}
	public class FigureDescription : HtmlElementDescription
	{
		public static readonly FigureDescription Instance = new FigureDescription();
		private FigureDescription() : base("figure", HtmlVersion.Html5) { }
		public override Type ControlType { get { return typeof(Figure); } }
		public override bool IsFlowElement { get { return true; } }
		public override bool OnlyFlowContent { get { return true; } }
		public override string Description { get { return "unit of content, optionally with a caption, that is self-contained, that is typically referenced as a single unit from the main flow of the document, and that can be moved away from the main flow of the document without affecting the document’s meaning."; } }
	}
}
